package com.monkey.model.user;

import com.monkey.generator.model.TUserBill;

import java.text.SimpleDateFormat;

/**
 * desc:
 * auth: chenxiaobin
 * data: 2018/1/20.
 */
public class UserBill {
    private float value;
    private int action;
    private int data1;
    private String time;

    public UserBill(TUserBill bill, SimpleDateFormat sdf) {
        this.value = bill.getValue().floatValue();
        this.action = bill.getAction();
        this.data1 = bill.getData1();
        this.time = sdf.format(bill.getCreatetime());
    }

    public float getValue() {
        return value;
    }

    public int getAction() {
        return action;
    }

    public int getData1() {
        return data1;
    }

    public String getTime() {
        return time;
    }
}
